<template>
	<!-- <hearder title="规章制度"></hearder> -->
	<view>
		<fui-list v-for="(item,index) in list" :key="index">
			<fui-list-cell @longpress="onShow(item)" arrow @click="toDetails(item)" :highlight="true">
				<text>{{index + 1  +  item.name}}</text>
			</fui-list-cell>
		</fui-list>
	</view>
	<view>
		<up-action-sheet :actions="columns" @select="onColumns" :round="10" @close="show=false" :closeOnClickOverlay="true" title="更多" :show="show">
		</up-action-sheet>
	</view>
</template>

<script>
	import hearder from '../../components/header/header.vue'
	import { BASE_IP } from '@/common/http/url.js'
	// #ifdef APP-PLUS
	const filePicker = uni.requireNativePlugin('Ba-FilePicker')
	const wpsTool = uni.requireNativePlugin("CL-WPSTool");
	const open = uni.requireNativePlugin("Html5App-openFile");
	const iOSFileSelect = uni.requireNativePlugin('YangChuan-YCiOSFileSelect');
	const lemonjkFileSelect = uni.requireNativePlugin('lemonjk-FileSelect');
	const FileShare = uni.requireNativePlugin('life-FileShare'); //分享插件
	// #endif
	//#ifdef MP-WEIXIN
	const filePicker = ""
	const wpsTool = ""
	const open = ""
	const iOSFileSelect = ""
	const lemonjkFileSelect = ""
	const FileShare = ""
	// #endif
	export default {
		components: {
			hearder
		},
		data() {
			return {
				columns: [{
						name: '分享',
						id: 3,
						color: "#2b85e4"
					},
					{
						name: '下载',
						id: 2
					},
					{
						name: '上传文档',
						id: 1
					}, {
						name: '取消',
						id: 0
					},
				],
				show: false,
				list: [],
				filePath: "",
				path: "",
				user: null,
				itme: ""
			};
		},
		onLoad() {
			let user = uni.getStorageSync('user');
			if (user == null || user == '' || user.unitId == '') {
				const pages = getCurrentPages();
				const currentPage = pages[pages.length - 1];
				const url = currentPage.route; // 页面路径（如 'pages/index/index'）
				const options = currentPage.options; // 页面参数对象
				uni.setStorageSync('url', '/' + url);
				uni.redirectTo({ url: '/pagesMine/wxLogin/wxLogin' });
				return;
			}
			this.user = user;
			this.getDatas();
			this.list = uni.getStorageSync("reginmelist");
		},
		methods: {
			onShow(res) {
				this.itme = res
				this.show = !this.show
			},
			onColumns(res) {
				if (res.id == 3) {
					let url = BASE_IP + this.itme.path
					let name = this.itme.name + ".docx"
					this.share(url, name)
				}
				if (res.id == 2) {
					let url = BASE_IP + this.itme.path
					console.log("url", url)
					uni.downloadFile({
						url: url,
						success: (res) => {
							console.log(res)
							if (res.statusCode == 200) {
								var filePath = res.tempFilePath;
								uni.openDocument({
									filePath: filePath,
									showMenu: true,
									success: function(res) {
										console.log('打开文档成功');
									}
								});
							}
						}
					})

				}
				if (res.id == 1) {
					if (this.user.power == 3) {
						uni.showToast({
							title: "权限不足",
							icon: "error"
						})
						return
					}

					this.toUpload(this.itme)
				}
			},
			share(url, name) {
				// 下面使用这个下载方式，亲测，如果用uniapp自身的ios中文乱码，下面可以重命名不会乱码，分享就是FileShare调用
				var dtask = plus.downloader.createDownload(url, {
					filename: "_doc/doc/" + name
				}, function(d, status) {
					// 下载完成
					if (status == 200) {
						FileShare.render({
							type: "SYSTEM", //QQ为QQ，微信为WX，系统默认是SYSTEM，不填写默认SYSTEM
							filePath: plus.io.convertLocalFileSystemURL(d.filename),
						}, result => {

						});
					} else {
						// console.log("Download failed: " + status);
					}
				});
				dtask.start();
			},
			editorUrlnDoc(url, item) {
				// if (this.user.power == 2 || this.user.power == 1 || this.user.power == 3) {
				// 判断手机类型是 Android 还是 ios
				if (uni.getSystemInfoSync().platform === 'android') {
					let is = open.isLoadTbs();
					if (!is) {
						uni.hideLoading()
						this.installLocalTbs()
						return
					}
					uni.downloadFile({
						url: url,
						success: (res) => {
							if (res.statusCode === 200) {
								const {
									tempFilePath
								} = res;
								let filePath = plus.io.convertLocalFileSystemURL(tempFilePath);
								console.log("安卓查看：", filePath)
								// uni.openDocument({
								// 	filePath:filePath,
								// 	success: (res) => {
								// 		console.log(res)
								// 	}
								// })
								open.openFile({
									filename: filePath,
									isShowBackIcon: true
								}, ret => {
									console.log(ret)
								});
							}
						},
						fail: (e) => {
							uni.hideLoading()
							console.log(e);
							uni.showModal({
								content: JSON.stringify(e) + "失败"
							})
						}
					})
				} else {
					uni.downloadFile({
						url: url,
						success: (res) => {
							uni.hideLoading()
							if (res.statusCode === 200) {
								const {
									tempFilePath
								} = res;
								let filePath = plus.io.convertLocalFileSystemURL(tempFilePath);
								open.openFile({
									filename: filePath,
									isShowBackIcon: true
								}, ret => {});
							}
						},
						fail: (e) => {
							uni.hideLoading()
							console.log(e);
							uni.showModal({
								content: JSON.stringify(e) + "失败"
							})
						}
					})
					// }

					return
				}

				// uni.downloadFile({
				// 	url: url,
				// 	success: (res) => {
				// 		uni.hideLoading()
				// 		if (res.statusCode === 200) {
				// 			const {
				// 				tempFilePath
				// 			} = res;
				// 			let filePath = plus.io.convertLocalFileSystemURL(tempFilePath);
				// 			this.openDocInfo(filePath, true, item);
				// 		}
				// 	},
				// 	fail: (e) => {
				// 		uni.hideLoading()
				// 		console.log(e);
				// 		uni.showModal({
				// 			content: JSON.stringify(e) + "失败"
				// 		})
				// 	}
				// })
			},
			installLocalTbs() {
				let url = BASE_IP + "static/tbs/arm64-v8a.tbs"
				uni.downloadFile({
					url: url,
					success: (res) => {
						if (res.statusCode == 200) {
							uni.saveFile({
								tempFilePath: res.tempFilePath,
								success: (r) => {
									let filepath = plus.io.convertLocalFileSystemURL(r
										.savedFilePath);
									open.installLocalTbs({
										tbsFilePath: filepath,
										isdelete: false //安装好是否要删除该文件
									}, function(e) {
										console.log("安装 tbs 内核" + JSON.stringify(e));
										if (e.code == 0) {
											uni.showToast({
												title: "安装TBS 请重新打开",
												icon: "none"
											});
										} else {
											uni.showToast({
												title: e.msg,
												icon: "none"
											});
										}
									});
								}
							})
						}
					}
				})
				//安装 tbs 离线内核, 在适当的时候安装tbs 浏览内核,安装一次即可
			},
			openDocInfo(filePath, isEditor, item) {
				if (!isEditor) {

					wpsTool.wpsOpenFile(filePath, result => {
						console.log(result + "aaa");
					})

				} else {
					let user = uni.getStorageSync("user")
					let options = {
						filePath: filePath, //文件路径 必填
						userName: user.userName, //必填，用于记录编辑信息
						isEnterReviseMode: true //是否进入修订模式,默认true
					};
					let i = item
					wpsTool.wpsEditorFile(options, result => {
						const {
							code,
							msg
						} = result;
						if (code == 1) {
							//成功;
							let newPath = result.path; //该路径为绝对路径;
							let relativepath = plus.io.convertAbsoluteFileSystem(newPath); //为平台的相对路径，可以用于上传到服务器;
							this.path = newPath;
							console.log("相对路径：", relativepath)
							this.uploadsSon(i, relativepath)
						} else {
							uni.showModal({
								title: "提示",
								content: "抱歉，文档查看失败",
								success: (res) => {
									return
								},
								showCancel: false
							})
						}
					})
				}
			},
			toDetails(item) {
				let url = BASE_IP + item.path
				uni.navigateTo({
					url: "/pagesWork/webview/webview?src=" + url
				})
				return;
				uni.showLoading({
					title: "正在加载"
				})
				if (!item.path) {
					uni.showModal({
						title: "提示",
						showCancel: false,
						content: "未查询到资料文件，请联系管理员上传",
						success: (res) => {
							if (res.confirm) {
								uni.hideLoading()
								return
							}
						}
					})
					uni.hideLoading()
					return
				}

				// let url = BASE_IP + item.path
				// this.editorUrlnDoc(url, item)
				// uni.hideLoading()
			},
			getDatas() {
				let user = uni.getStorageSync("user")
				this.user = user
				let url = BASE_IP + "pc/regulatory/query"
				uni.request({
					header: {
						"Authorization": user.token
					},
					url: url,
					method: "GET",
					success: (res) => {
						if (res.statusCode == 200) {
							// uni.removeStorageSync("reginme")
							console.log("文档数据", res)
							// uni.setStorageSync("reginme", res.data)
							let reginme = res.data.data
							let reginmelist = [{
									id: 2,
									name: "火灾隐患整改制度",
									path: reginme.fireHazardSystem
								}, {
									id: 3,
									name: "消防安全教育、培训制度",
									path: reginme.fireSafetySystem
								}, {
									id: 4,
									name: "消防设施、器材维护管理制度",
									path: reginme.fireControlSystem
								}, {
									id: 5,
									name: "消防(控制室)值班管理制度",
									path: reginme.fireManagementSystem
								}, {
									id: 6,
									name: "易燃易爆危险物品和场所防火防爆管理制度",
									path: reginme.fireAndExplosionControlSystem
								}, {
									id: 7,
									name: "部门、岗位消防安全职责",
									path: reginme.departmentSecurity
								}, {
									id: 8,
									name: "火和应急疏散预案演练制度",
									path: reginme.fireFightingSystem
								}, {
									id: 9,
									name: "用火、用电安全管理制度",
									path: reginme.fireAndElectricitySystem
								}, {
									id: 10,
									name: "施工现场消防安全管理制度",
									path: reginme.constructionSystem
								},
								{
									id: 11,
									name: "消防安全工作考评和奖惩制度",
									path: reginme.fireSafetyWorkSystem
								}, {
									id: 12,
									name: "职消防队、微型消防站或义务消防队制度",
									path: reginme.fullTimeSystem
								}, {
									id: 13,
									name: "安全疏散设施管理制度",
									path: reginme.safetyFacilitiesSystem
								}, {
									id: 14,
									name: "燃气和电气设备检查和管理制度",
									path: reginme.gasAndElectricalSystem
								}, {
									id: 15,
									name: "消防设施、器材维护管理制度",
									path: reginme.fireSettingSystem
								}, {
									id: 16,
									name: "防火巡查、检查制度",
									path: reginme.fireInspectionSystem
								}, {
									id: 17,
									name: "租赁场所安全管理和消防安全管理制度",
									path: reginme.rentalPlaceSafetySystem
								}
							]
							uni.setStorageSync("reginmelist", reginme)
							this.list = reginme
							console.log("获取数据：", reginme)
						}
					}
				})
				// let reginme = uni.getStorageSync("reginme")
				// this.$forceUpdate();
			},
			toUpload(item) {
				let _this = this
				uni.showModal({
					title: "提示",
					content: "请选择.docx文档",
					showCancel: false,
					success: (res) => {
						if (res.confirm) {


							if (uni.getSystemInfoSync().platform == 'ios') {
								console.log("ios")
								lemonjkFileSelect.showPicker({
									mimeType: "*/*",
									utisType: ["public.data"],
									pathScope: "/Download",
									navTitle: "文件选择",
									theme: 'auto', //auto 跟随系统  light 亮色  dark 暗色 
									showHideFile: "yes", //是否显示隐藏的文件和文件夹      
									filterConfig: { //对象里配置的属性要同时满足   
										// fileName:['base.apk','config.txt','配置文件.yaml'],  //属性数组满足其中一项
										fileSize: String(1 * 1024 * 1024), // 单位：byte(字节)  //属性数组满足其中一项
										fileExtension: ['docx'], //属性数组满足其中一项 
									}
								}, result => {
									console.log(result);
									console.log(result.files[0].filePath);
									if (result.files[0].fileExtension == "docx") {
										let path = result.files[0].filePath

										_this.uploads(item, path)
									} else {
										uni.showModal({
											title: "提示",
											content: "请选择docx文档",
											showCancel: false
										})
									}
								})
							} else {
								console.log("安卓")
								lemonjkFileSelect.isHaveSecurityScopeGrant({
									type: "FILE_PERMISSION" //不填默认为"FILE_PERMISSION"，可选值："FILE_PERMISSION"（用于自定义文件选择器相关权限查询）
								}, result => {
									if (result.result == "yes") {
										//有权限,可以直接唤起自定义文件选择器
										// lemonjkFileSelect.showPicker()
										lemonjkFileSelect.showPicker({
											mimeType: "*/*",
											utisType: ["public.data"],
											pathScope: "/Download",
											navTitle: "文件选择",
											theme: 'auto', //auto 跟随系统  light 亮色  dark 暗色 
											showHideFile: "yes", //是否显示隐藏的文件和文件夹      
											filterConfig: { //对象里配置的属性要同时满足   
												// fileName:['base.apk','config.txt','配置文件.yaml'],  //属性数组满足其中一项
												fileSize: String(1 * 1024 *
													1024), // 单位：byte(字节)  //属性数组满足其中一项
												fileExtension: ['docx'], //属性数组满足其中一项 
											}
										}, result => {
											console.log(result);
											console.log(result.files[0].filePath);
											console.log(item);
											if (result.files[0].fileExtension == "docx") {
												let path = result.files[0].filePath

												_this.uploads(item, path)
											} else {
												uni.showModal({
													title: "提示",
													content: "请选择docx文档",
													showCancel: false
												})
											}

										})
									} else {
										//无权限,询问用户是否同意申请权限
										uni.showModal({
											content: "需要申请文件访问权限，是否同意",
											success(e) {
												if (e.confirm) {
													lemonjkFileSelect
														.reqCustomPickerPermission({},
															result => {

																console.log(result);
															})
												} else {

												}
											}
										})
									}
								})
							}
						}
					}
				})

			},
			uploads(item, filePath) {
				console.log("获取item：", item)
				console.log("获取路径：", filePath)
				let user = uni.getStorageSync("user")
				switch (item.id) {
					case 0: {
						let url = BASE_IP + "pc/presetfunction/upload/unitFireSeal"
					}
					// this.upload(url, this.filePath)
					break
					case 1: //其它结合单位情况制定的消防安全制度
					{
						let url = BASE_IP + "pc/regulatory/upload/otherSystem"
						this.upload(url, filePath)
					}
					break
					case 2: //火灾隐患整改制度
					{
						let url = BASE_IP + "pc/regulatory/upload/fireHazardSystem"
						this.upload(url, filePath)
					}
					break
					case 3: //消防安全教育、培训制度
					{
						let url = BASE_IP + "pc/regulatory/upload/fireSafetySystem"
						this.upload(url, filePath)
					}
					break
					case 4: //消防设施、器材维护管理制度
					{
						let url = BASE_IP + "pc/regulatory/upload/fireControlSystem"
						this.upload(url, filePath)
					}
					break
					case 5: { //消防(控制室)值班管理制度
						let url = BASE_IP + "pc/regulatory/upload/fireManagementSystem"
						this.upload(url, filePath)
					}
					break
					case 6: { //易燃易爆危险物品和场所防火防爆管理制度
						let url = BASE_IP + "pc/regulatory/upload/fireAndExplosionControlSystem"
						this.upload(url, filePath)
					}
					break
					case 7: { //部门、岗位消防安全职责
						let url = BASE_IP + "pc/regulatory/upload/departmentsecurity"
						this.upload(url, this.filePath)
					}
					break
					case 8: { //火和应急疏散预案演练制度
						let url = BASE_IP + "pc/regulatory/upload/fireFightingSystem"
						this.upload(url, filePath)
					}
					break
					case 9: { //用火、用电安全管理制度
						let url = BASE_IP + "pc/regulatory/upload/fireAndElectricitySystem"
						this.upload(url, filePath)
					}
					break
					case 10: { //施工现场消防安全管理制度
						let url = BASE_IP + "pc/regulatory/upload/constructionSystem"
						this.upload(url, filePath)
					}
					break
					case 11: { //消防安全工作考评和奖惩制度
						let url = BASE_IP + "pc/regulatory/upload/fireSafetyWorkSystem"
						this.upload(url, filePath)
					}
					break
					case 12: { // 职消防队、微型消防站或义务消防队制度
						let url = BASE_IP + "pc/regulatory/upload/fullTimeSystem"
						this.upload(url, filePath)
					}
					break
					case 13: { //安全疏散设施管理制度
						let url = BASE_IP + "pc/regulatory/upload/safetyFacilitiesSystem"
						this.upload(url, filePath)
					}
					break
					case 14: { //燃气和电气设备检查和管理制度
						let url = BASE_IP + "pc/regulatory/upload/gasAndElectricalSystem"
						this.upload(url, filePath)
					}
					break
					case 15: { //消防设置、器材维护管理制度
						let url = BASE_IP + "pc/regulatory/upload/fireSettingSystem"
						this.upload(url, filePath)
					}
					break
					case 16: { //防火巡查、检查制度
						let url = BASE_IP + "pc/regulatory/upload/fireInspectionSystem"
						this.upload(url, filePath)
					}
					break
					case 17: { //租赁场所安全管理和消防安全管理制度
						let url = BASE_IP + "pc/regulatory/upload/rentalPlaceSafetySystem"
						this.upload(url, filePath)
					}
					break
				}
			},
			uploadsSon(item, filePath) {
				let user = uni.getStorageSync("user")
				switch (item.id) {
					case 0: {
						let url = BASE_IP + "pc/presetfunction/upload/unitFireSeal"
					}
					// this.upload(url, this.filePath)
					break
					case 1: //其它结合单位情况制定的消防安全制度
					{
						let url = BASE_IP + "pc/regulatory/upload/otherSystem"
						this.uploadSon(url, filePath)
					}
					break
					case 2: //火灾隐患整改制度
					{
						let url = BASE_IP + "pc/regulatory/upload/fireHazardSystem"
						this.uploadSon(url, filePath)
					}
					break
					case 3: //消防安全教育、培训制度
					{
						let url = BASE_IP + "pc/regulatory/upload/fireSafetySystem"
						this.uploadSon(url, filePath)
					}
					break
					case 4: //消防设施、器材维护管理制度
					{
						let url = BASE_IP + "pc/regulatory/upload/fireControlSystem"
						this.uploadSon(url, filePath)
					}
					break
					case 5: { //消防(控制室)值班管理制度
						let url = BASE_IP + "pc/regulatory/upload/fireManagementSystem"
						this.uploadSon(url, filePath)
					}
					break
					case 6: { //易燃易爆危险物品和场所防火防爆管理制度
						let url = BASE_IP + "pc/regulatory/upload/fireAndExplosionControlSystem"
						this.uploadSon(url, filePath)
					}
					break
					case 7: { //部门、岗位消防安全职责
						let url = BASE_IP + "pc/regulatory/upload/departmentsecurity"
						this.uploadSon(url, this.filePath)
					}
					break
					case 8: { //火和应急疏散预案演练制度
						let url = BASE_IP + "pc/regulatory/upload/fireFightingSystem"
						this.uploadSon(url, filePath)
					}
					break
					case 9: { //用火、用电安全管理制度
						let url = BASE_IP + "pc/regulatory/upload/fireAndElectricitySystem"
						this.uploadSon(url, filePath)
					}
					break
					case 10: { //施工现场消防安全管理制度
						let url = BASE_IP + "pc/regulatory/upload/constructionSystem"
						this.uploadSon(url, filePath)
					}
					break
					case 11: { //消防安全工作考评和奖惩制度
						let url = BASE_IP + "pc/regulatory/upload/fireSafetyWorkSystem"
						this.uploadSon(url, filePath)
					}
					break
					case 12: { // 职消防队、微型消防站或义务消防队制度
						let url = BASE_IP + "pc/regulatory/upload/fullTimeSystem"
						this.uploadSon(url, filePath)
					}
					break
					case 13: { //安全疏散设施管理制度
						let url = BASE_IP + "pc/regulatory/upload/safetyFacilitiesSystem"
						this.uploadSon(url, filePath)
					}
					break
					case 14: { //燃气和电气设备检查和管理制度
						let url = BASE_IP + "pc/regulatory/upload/gasAndElectricalSystem"
						this.uploadSon(url, filePath)
					}
					break
					case 15: { //消防设置、器材维护管理制度
						let url = BASE_IP + "pc/regulatory/upload/fireSettingSystem"
						this.uploadSon(url, filePath)
					}
					break
					case 16: { //防火巡查、检查制度
						let url = BASE_IP + "pc/regulatory/upload/fireInspectionSystem"
						this.uploadSon(url, filePath)
					}
					break
					case 17: { //租赁场所安全管理和消防安全管理制度
						let url = BASE_IP + "pc/regulatory/upload/rentalPlaceSafetySystem"
						this.uploadSon(url, filePath)
					}
					break
				}
			},
			uploadSon(url, filePath) {
				let user = uni.getStorageSync("user")
				uni.uploadFile({
					header: {
						"Authorization": user.token,
					},
					name: "file",
					url: url,
					filePath: filePath,
					success: (res) => {
						console.log("调用上传接口：", filePath)
						if (res.statusCode == 200) {
							// console.log("上传成功")
							uni.showToast({
								title: "上传成功",
								icon: "success"
							})

							let time = setTimeout((res) => {
								this.getDatas()
							}, 500)
							let time1 = setTimeout((res) => {
								this.getDatas()
							}, 800)
						}
					},
					fail: (res) => {
						uni.showToast({
							title: "上传失败,请重试",
							icon: "error"
						})
					}
				})
			},
			upload(url, filePath) {
				let user = uni.getStorageSync("user")
				uni.uploadFile({
					header: {
						"Authorization": user.token,
					},
					name: "file",
					url: url,
					filePath: filePath,
					success: (res) => {
						console.log("调用上传接口：", res)
						if (res.statusCode == 200) {
							uni.showToast({
								title: "上传成功",
								icon: "success"
							})

							let time = setTimeout((res) => {
								this.getDatas()
							}, 500)
							let time1 = setTimeout((res) => {
								this.getDatas()
							}, 800)
						}
					},
					fail: (res) => {
						uni.showToast({
							title: "上传失败,请重试",
							icon: "error"
						})
					}
				})
			},
			/** 盖章函数
			 * @param {Object} filePath 印章图片
			 * @param {Object} docPath  要盖章的文档
			 */
			upLoadSeal(filePath, docPath, itme) {
				console.log(filePath, docPath)
				let user = uni.getStorageSync("user")
				let url = BASE_IP + "pc/regulatory/update/word"
				uni.uploadFile({
					header: {
						"Authorization": user.token,
					},
					name: "file",
					url: url,
					formData: {
						"unitId": user.unitId,
						"path": docPath
					},
					filePath: filePath,
					success: (res) => {
						if (res.statusCode == 200) {
							uni.showToast({
								title: "盖章成功",
								icon: "success"
							})


							let time = setTimeout((res) => {
								this.getDatas()
							}, 500)
							let time1 = setTimeout((res) => {
								this.getDatas()
							}, 800)

							let time2 = setTimeout((res) => {
								this.toDetails(itme)
							}, 1000)
						}
						if (res.statusCode == 500) {
							uni.showToast({
								title: "上传失败",
								icon: "error"
							})
							return
						}
					},
					fail: (res) => {
						uni.showToast({
							title: "上传失败,请重试",
							icon: "error"
						})
					}
				})
			},
			onSeal(item) {
				// console.log("获取对象：", item.path)
				let pralldata = uni.getStorageSync("pralldata")
				if (pralldata.unitFireSeal == "" || pralldata.unitFireSeal == undefined) {
					uni.showModal({
						title: "提示",
						content: "单位未上传消防专用章",
						showCancel: false,
						success: (res) => {
							if (res.confirm) {
								return
							}
						}
					})
					return
				}
				let url = BASE_IP + pralldata.unitFireSeal
				uni.downloadFile({ //下载
					url: url, //图片下载地址
					success: res => {
						if (res.statusCode === 200) {
							uni.saveFile({
								tempFilePath: res.tempFilePath,
								success: (r) => {
									// console.log(r)
									this.upLoadSeal(r.savedFilePath, item.path, item)
								}
							})
						}
					}
				});
			}
		},
	}
</script>

<style lang="scss">
	body {
		background-color: rgb(247, 247, 247);
	}

	.list {
		background-color: white;
		height: 80rpx;
		width: 90%;
		border-radius: 15rpx;
		border-bottom: 2px solid #eeeeee;
		margin: auto;
		margin-top: 25rpx;
		line-height: 80rpx;
		padding-left: 20rpx;
		// font-size: 10px;
		font-weight: bold;
		color: #606266;
		margin-bottom: 20rpx;
		display: flex;
		justify-content: space-between;
	}

	.list-btn {
		width: 150rpx;
		height: 100%;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.list-ops {
		width: 80%;
		display: flex;
		justify-content: space-between;
		flex-direction: row-reverse;
		margin: auto;
		align-items: center;
		padding-bottom: 20rpx;
	}
</style>